//
//  FLLShikeHeaderView.m
//  FLLGodOfCooking
//
//  Created by LL.F on 16/9/7.
//  Copyright © 2016年 LL.F. All rights reserved.
//

#import "FLLShikeHeaderView.h"
#import "Masonry.h"
#import "FLLShikeHeaderCollectionViewCell.h"

@interface FLLShikeHeaderView ()

@end
@implementation FLLShikeHeaderView
- (instancetype)initWithReuseIdentifier:(NSString *)reuseIdentifier
{
    
    self = [super initWithReuseIdentifier:reuseIdentifier];
    if ( self) {
        [self createSubViews];
    }
    return self;
}
- (void)createSubViews
{
    UICollectionViewFlowLayout *albumLayout = [[UICollectionViewFlowLayout alloc] init];
    albumLayout.minimumInteritemSpacing = 0;
    albumLayout.minimumLineSpacing = 0;
    albumLayout.sectionInset = UIEdgeInsetsMake(0, 0, 0, 0);
    albumLayout.scrollDirection = UICollectionViewScrollDirectionHorizontal;
    
    self.albumCollectionView = [[UICollectionView alloc] initWithFrame:CGRectZero collectionViewLayout:albumLayout];
    [self addSubview:_albumCollectionView];
    
}
- (void)layoutSubviews
{
    [super layoutSubviews];
    [_albumCollectionView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.left.bottom.right.mas_equalTo(0);
    }];
    
    
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
